package com.example.service;

import com.example.vo.SaleStateMentVo;
import com.github.pagehelper.PageInfo;
import com.example.pojo.FileUpload;
import com.example.pojo.Receipts;
import com.example.pojo.ReceiptsDetails;
import com.example.pojo.User;

import java.util.Date;
import java.util.List;

public interface ReceiptsService {
    PageInfo<Receipts> pageReceiptsBy(Integer pageNum, Integer pageSize, Integer status, Integer typeid, String startTime,String endTime);
    PageInfo<Receipts> pageReceiptsByStock(Integer pageNum, Integer pageSize, Integer status, Integer typeid, String startTime,String endTime,String rno);
    int addReceipts(Integer typeid, String name, List<ReceiptsDetails> rds,Integer[] fuid);
    List<FileUpload> findFileUpload(Integer rid);
    Receipts findReceiptsByRid(Integer rid);
    int delReceipts(Integer rid);
    int updateReceipts(Integer rid, User user);

    PageInfo<SaleStateMentVo> pageSaleStateMent(Integer pageNum, Integer pageSize,String startTime,String endTime);
    PageInfo<SaleStateMentVo> findSaleStateMentByOid(Integer pageNum, Integer pageSize,Integer oid);
}
